<?php
/**
 * Created by PhpStorm.
 * User: 28944
 * Date: 2018/5/28
 * Time: 16:30
 */
namespace app\index\validate;
use think\Validate;

class Login extends Validate
{
    protected $rule = [
        'u_user'  =>  'require',
//        'u_pwd'   =>''
    ];

    protected $message = [
        'u_user.require'  =>  '用户名必须',
//        'u_user.unique'  =>  '用户名已存在'
    ];

    protected $scene = [
        'add'   =>  ['u_user'],
        'up'  =>  ['u_user'],
    ];

}